package net.aiion.weave.impl.xml.events;

import net.aiion.weave.spi.xml.events.CommentXmlEvent;

public class CommentXmlEventImpl extends XmlEventImpl implements CommentXmlEvent
{
    private final String comment;

    public CommentXmlEventImpl(final String aComment) {
        comment = aComment;
    }

    @Override
    public int getType() {
        return COMMENT;
    }

    @Override
    public String getComment() {
        return comment;
    }

    @Override
    public String toString() {
        final StringBuilder builder = new StringBuilder();
        builder.append("XmlCommentImpl[comment=");
        builder.append(comment);
        builder.append("]");
        return builder.toString();
    }
}
